<?php 
include ("../BusinessLogicTier/NguoiDung.php");
$ttnguoidungBUS = new ThongTinNguoiDungBUS();
$nguoidungBUS= new NguoiDungBUS();
$nguoidung = $nguoidungBUS->getThongTinNguoiDung();
$soluong = sizeof($nguoidung);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<table border="1px" width="500px" bordercolor="#0000CC" >
	<tr>
    	<font color="#000000" >Danh Sách Người Dùng
    </tr>
    
    <tr>
    	<th>stt</th>
        <th> Mã ND </th>
        <th> Tên Hiện Thị </th>
        <th> Xóa </th>
        
    </tr>
    <?php $stt=0; foreach($nguoidung as $objnguoidung){?>
    <tr>
    	
        <td><?php echo $stt++;?></td>
        <td><?php echo $objnguoidung->getMaND();?></td>
        <td><?php $ttnguoidung = $ttnguoidungBUS->getThongTinNguoiDungByMaND($objnguoidung->getMaND());
					echo $ttnguoidung->getTenHienThi();?> </td>
        
        <td><a href="" onclick="<?php $ttnguoidungBUS->delete($objnguoidung->getMaND());?>"><font color="#FF0000">Xóa</font></a></td>
    </tr>
    <?php }?>
</table>
</body>
</html>